package com.umpay.dto.merBusi.req.consume;

import org.hibernate.validator.constraints.NotEmpty;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merBusi.req.CommonBusiReq;

/*******************************************************************
 * description : 富民银行存管消费交易子流程，到银行上账
 * @author zhangru
 * @date 2018年5月22日 下午3:31:28
 * @version 1.0
 ******************************************************************/
public class CqfmbConsumeCommonBusiReq extends CommonBusiReq {
	/**
	 * 商户号
	 */
	@NotEmpty(message = "商户号不能为空")
	@Pattern(message="商户号格式不正确")
	private String merId;
	
	@NotEmpty(message = "交易流水不能为空")
	@Pattern(message="交易流水格式不正确")
	private String trace;
	
	@NotEmpty(message = "机构号不能为空")
	@Pattern(message="机构号格式不正确")
	private String instId;
	
	/**
	 * 订单金额
	 */
	@NotEmpty(message = "订单金额不能为空")
	@Pattern(message="订单金额格式不正确")
	private String amount;
	
	@NotEmpty(message = "购买方会员编号不能为空")
	@Pattern(message="购买方会员编号格式不正确")
	private String userId	;    //购买方会员编号
	
	@Pattern(message="备注信息格式不正确")
	private String remark	;    //备注信息

	private String comAmt;
	
	private String comAmtType;
	public String getMerId() {
		return merId;
	}

	public void setMerId(String merId) {
		this.merId = merId;
	}

	public String getTrace() {
		return trace;
	}

	public void setTrace(String trace) {
		this.trace = trace;
	}

	public String getInstId() {
		return instId;
	}

	public void setInstId(String instId) {
		this.instId = instId;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getDepBankMerId() {
		return depBankMerId;
	}

	public void setDepBankMerId(String depBankMerId) {
		this.depBankMerId = depBankMerId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public String getComAmt() {
		return comAmt;
	}

	public void setComAmt(String comAmt) {
		this.comAmt = comAmt;
	}
	
	
	public String getComAmtType() {
		return comAmtType;
	}

	public void setComAmtType(String comAmtType) {
		this.comAmtType = comAmtType;
	}

	@Override
	public String toString() {
		return "CqfmbConsumeCommonBusiReq [merId=" + merId + ", trace=" + trace + ", instId=" + instId + ", amount="
				+ amount + ", userId=" + userId + ", remark=" + remark + ", comAmt=" + comAmt + ", comAmtType="
				+ comAmtType + "]";
	}
	
}
